public class Max {
    public static int max(int x,int y){
        return x>y?x:y;
    }
    public static double max(double x,double y,double z){
        if (x>=y){
            return x>z?x:z;
        }
        else{
            return y>z?x:z;
        }
    }
    public static void main(String[] args) {
        int a=1;
        int b=2;
        double c=3.33;
        double d=4.44;
        double e=5.55;
        int maxnum =max(a,b);
        double maxnum2 =max(c,d,e);
        System.out.println(maxnum);
        System.out.println(maxnum2);
    }
}
